﻿using SLClient.ServiceAPI;
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;

namespace SLClient.CustomerControls
{
    public partial class MoneyOutConfirmWindow : ChildWindow
    {
        public MoneyOutConfirmWindow(ViwMoneyOut viwMoneyOut, ObservableCollection<ViwMoneyOut> viwMoneyOuts)
        {
            this.InitializeComponent();
            base.DataContext=new MoneyOutConfirm(viwMoneyOut, viwMoneyOuts);
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            base.DialogResult = false;
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            base.DialogResult = true;
        }
    }
}

